package org.kugua.enums;

import lombok.Getter;

/**
 * ImageType
 *
 * @author 苦瓜
 * @create 2024-08-28
 * @since 1.0.0
 */
@Getter
public enum ImageType {

    /**
     * PNG格式
     */
    PNG("png", "data:image/png;base64,"),
    /**
     * JPEG
     */
    JPEG("jpeg", "data:image/jpeg;base64,"),
    /**
     * JPG
     */
    JPG("jpg", "data:image/jpeg;base64,");

    /**
     * 类型
     */
    private final String type;

    /**
     * base64前缀
     */
    private final String prefix;

    ImageType(String type, String prefix) {
        this.type = type;
        this.prefix = prefix;
    }
}
